package cn.miju.alipay.request;

import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <pre>
 * 订单退款
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-02 16:00
 */
@Data
@ToString
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AlipayRefundOrderReq extends AlipayBaseReq {

    /**
     * 商户订单号
     */
    private String outTradeNo;
    /**
     * 支付宝交易号
     */
    private String tradeNo;
    /**
     * 商户退款单号
     */
    @NotBlank(message = "传入商户退款单号不能为空")
    private String outRefundNo;
    /**
     * 退款金额
     */
    @NotNull(message = "传入退款金额不能为空")
    private BigDecimal refundAmount;
}
